var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {
    res.render('index', { title: 'Express' });
});
router.get('/list', ((req, res, next) => {
    res.json({
        code: 200,
        msg: '请假的列表'
    })
}))

module.exports = router;
